package com.leadership.entity;

/**
 * 认证等级
 * @author haiyan_xiao
 *
 */
public enum NotificationType {

    USER_CREATE("user-create", "用户创建通知"),
    
    LEARNING_CREATE("learning-create", "刻意学习计划创建通知"),
    
    MONTHLY_LERNING("monthly-learning", "月回顾通知"),
    
    CREATE_LEARNING_COMMENT("create-learning-comment", "创建月回顾信息"),
    
    LEARNING_EDIT("learning-edit", "刻意学习计划修改通知");
    
    private String alias;
    
    private String description;
    
    private NotificationType(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @return
     */
    public boolean isUserCreate() {
        return this.equals(USER_CREATE);
    }
    
    /**
     * 
     * @return
     */
    public boolean isLearningCreate() {
        return this.equals(LEARNING_CREATE);
    }
    
    /**
     * 
     * @return
     */
    public boolean isMonthlyLearning() {
        return this.equals(MONTHLY_LERNING);
    }
    
    /**
     * 
     * @return
     */
    public boolean isCreateLearningComment() {
        return this.equals(CREATE_LEARNING_COMMENT);
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
}
